package com.shiyo.spring.basic_di.b_constructor.config;

import com.shiyo.spring.basic_di.b_constructor.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PersonConfig {
    @Bean
    public Person person() {
        return new Person("shiyo", 20);}
}
